cmake_minimum_required(VERSION 2.8)
project(Mini)

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)

if(WIN32)
    option(MINI_CONFIG_WITH_WIN7 "Build Mini with Win7 compatiable?" OFF)
endif()

add_definitions(-DUNICODE -D_UNICODE)
if(BUILD_SHARED_LIBS)
	add_definitions(-DMINI_USING_DLL)
endif()

add_subdirectory(src)
add_subdirectory(sample) 